package com.nnnu.orange.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 存储作者的详细信息
 * </p>
 *
 * @author zk
 * @since 2024-11-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("authors")
@ApiModel(value = "Authors对象", description = "存储作者的详细信息")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Authors implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "作者唯一标识")
    @TableId(value = "author_id", type = IdType.AUTO)
    private Integer authorId;

    @ApiModelProperty(value = "作者姓名")
    private String name;

    @ApiModelProperty(value = "作者画像")
    private String portraitUrl;

    @ApiModelProperty(value = "作者简介")
    private String bio;

    @ApiModelProperty(value = "出生日期")
    private LocalDate birthDate;

    @ApiModelProperty(value = "国籍")
    private String nationality;

    @ApiModelProperty(value = "去世日期")
    private LocalDate deathDate;

    @ApiModelProperty(value = "获得的奖项")
    private String awards;

    @ApiModelProperty(value = "官方网站")
    private String website;

    @ApiModelProperty(value = "社交媒体链接")
    private String socialMedia;

    @ApiModelProperty(value = "主要创作类型（小说、诗歌等）")
    private String genres;

    @ApiModelProperty(value = "代表作品")
    private String notableWorks;


}
